import { getRequest, postRequest, putRequest } from '../../utils/request'

export const requestDictList = params => {
  return getRequest('/dict/listDict')
}

export const requestAddDict = params => {
  return postRequest('/dict/addDict', params)
}

export const requestUpdateDict = params => {
  return putRequest('/dict/editDict', params)
}

export const requestDelDictById = params => {
  return postRequest('/dict/removeDict/' + params)
}

export const requestDictValueList = params => {
  return getRequest('/dict/listDictValue/' + params)
}

export const requestAddDictValue = params => {
  return postRequest('/dict/addDictValue', params)
}

export const requestUpdateDictValue = params => {
  return putRequest('/dict/editDictValue', params)
}

export const requestDelDictValueById = params => {
  return postRequest('/dict/removeDictValue/' + params)
}
